package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<GoodsMapper> {

    List<Goods> selectAll();

    Goods selectGoods(@Param("title") String title);

    List<Goods> selectById(@Param("goodsId")Integer[] goodsId);

    List<Goods> getGoodsById(Integer id);

    List<Goods> selectInventory(@Param("goodsId")Integer goodsId[],@Param("stockNum")Integer stockNum[]);
}
